package com.oig.sys.auth.dto;

import com.oig.common.validator.GroupAdd;
import com.oig.common.validator.GroupEdit;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@Schema(description = "租户参数")
public class TenantInfoDto {


    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    @NotNull(message = "参数错误,id不能为空", groups= GroupEdit.class)
    private Integer id;

    @Schema(description = "租户编码", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    @NotEmpty(message = "参数错误，租户编码不能为空", groups={GroupAdd.class, GroupEdit.class})
    private String code;

    @Schema(description = "租户名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    @NotEmpty(message = "参数错误，租户名称不能为空", groups={GroupAdd.class, GroupEdit.class})
    private String name;

    @Schema(description = "社会统一编码")
    private String idCard;

    @Schema(description = "法人")
    private String legalPerson;

    @Schema(description = "联系人")
    private String linkPerson;

    @Schema(description = "联系电话")
    private String linkPhone;

    @Schema(description = "联系地址")
    private String linkAddress;

    @Schema(description = "证件附件")
    private String fileId;

    @Schema(description = "证件附件url")
    private String fileUrl;

    @Schema(description = "证件附件名")
    private String fileName;


}
